class caesar:

    def __init__(self,cipher,shift):
        self.cipher=cipher
        self.shift=shift

    def decrypt(self):
        out_str=''

        for i in self.cipher:
            out_str+=chr(ord(i)+int(self.shift))

        return out_str


    # def pr(self):
    #     print self.cipher
    #     print self.shift



if __name__ == "__main__" :
    input_cipher=raw_input("Plese input your string:")
    input_shift=raw_input("Plese input your shift:")

    a=caesar(input_cipher,input_shift)

    text=caesar.decrypt(a)

    print text